<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<title>Tetris Game: /home/hokan/NetBeansProjects/TetrisGame/headers/CMoveDownAnimator.h Source File</title>

<link href="tabs.css" rel="stylesheet" type="text/css"/>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
<link href="navtree.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="resize.js"></script>
<script type="text/javascript" src="navtree.js"></script>
<script type="text/javascript">
  $(document).ready(initResizable);
</script>
<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="search/search.js"></script>
<script type="text/javascript">
  $(document).ready(function() { searchBox.OnSelectItem(0); });
</script>

</head>
<body>
<div id="top"><!-- do not remove this div! -->


<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  
  
  <td style="padding-left: 0.5em;">
   <div id="projectname">Tetris Game
   &#160;<span id="projectnumber">1.0</span>
   </div>
   <div id="projectbrief">Test game project created via Irrlicht and Qt</div>
  </td>
  
  
  
 </tr>
 </tbody>
</table>
</div>

<!-- Generated by Doxygen 1.7.6.1 -->
<script type="text/javascript">
var searchBox = new SearchBox("searchBox", "search",false,'Search');
</script>
  <div id="navrow1" class="tabs">
    <ul class="tablist">
      <li><a href="index.html"><span>Main&#160;Page</span></a></li>
      <li><a href="annotated.html"><span>Classes</span></a></li>
      <li class="current"><a href="files.html"><span>Files</span></a></li>
      <li>
        <div id="MSearchBox" class="MSearchBoxInactive">
        <span class="left">
          <img id="MSearchSelect" src="search/mag_sel.png"
               onmouseover="return searchBox.OnSearchSelectShow()"
               onmouseout="return searchBox.OnSearchSelectHide()"
               alt=""/>
          <input type="text" id="MSearchField" value="Search" accesskey="S"
               onfocus="searchBox.OnSearchFieldFocus(true)" 
               onblur="searchBox.OnSearchFieldFocus(false)" 
               onkeyup="searchBox.OnSearchFieldChange(event)"/>
          </span><span class="right">
            <a id="MSearchClose" href="javascript:searchBox.CloseResultsWindow()"><img id="MSearchCloseImg" border="0" src="search/close.png" alt=""/></a>
          </span>
        </div>
      </li>
    </ul>
  </div>
  <div id="navrow2" class="tabs2">
    <ul class="tablist">
      <li><a href="files.html"><span>File&#160;List</span></a></li>
    </ul>
  </div>
</div>
<div id="side-nav" class="ui-resizable side-nav-resizable">
  <div id="nav-tree">
    <div id="nav-tree-contents">
    </div>
  </div>
  <div id="splitbar" style="-moz-user-select:none;" 
       class="ui-resizable-handle">
  </div>
</div>
<script type="text/javascript">
  initNavTree('_c_move_down_animator_8h.html','');
</script>
<div id="doc-content">
<div class="header">
  <div class="headertitle">
<div class="title">/home/hokan/NetBeansProjects/TetrisGame/headers/CMoveDownAnimator.h</div>  </div>
</div><!--header-->
<div class="contents">
<div class="fragment"><pre class="fragment"><a name="l00001"></a>00001 <span class="comment">/* </span>
<a name="l00002"></a>00002 <span class="comment"> * File:   CMoveDownAnimator.h</span>
<a name="l00003"></a>00003 <span class="comment"> * Author: hokan</span>
<a name="l00004"></a>00004 <span class="comment"> *</span>
<a name="l00005"></a>00005 <span class="comment"> * Created on 29 Июнь 2014 г., 19:21</span>
<a name="l00006"></a>00006 <span class="comment"> */</span>
<a name="l00007"></a>00007 
<a name="l00008"></a>00008 <span class="preprocessor">#ifndef CMOVEDOWNANIMATOR_H</span>
<a name="l00009"></a>00009 <span class="preprocessor"></span><span class="preprocessor">#define CMOVEDOWNANIMATOR_H</span>
<a name="l00010"></a>00010 <span class="preprocessor"></span>
<a name="l00011"></a>00011 <span class="preprocessor">#include &quot;headers/CGameFieldManager.h&quot;</span>
<a name="l00012"></a>00012 
<a name="l00013"></a>00013 <span class="preprocessor">#pragma GCC diagnostic ignored &quot;-Wunused-parameter&quot;</span>
<a name="l00014"></a>00014 <span class="preprocessor"></span><span class="preprocessor">#pragma GCC diagnostic ignored &quot;-Wunused-variable&quot;</span>
<a name="l00015"></a>00015 <span class="preprocessor"></span><span class="preprocessor">#include &lt;ISceneNodeAnimator.h&gt;</span>
<a name="l00016"></a>00016 <span class="preprocessor">#include &lt;ISceneNode.h&gt;</span>
<a name="l00017"></a>00017 <span class="preprocessor">#include &lt;aabbox3d.h&gt;</span>
<a name="l00018"></a>00018 <span class="preprocessor">#pragma GCC diagnostic warning &quot;-Wunused-parameter&quot;</span>
<a name="l00019"></a>00019 <span class="preprocessor"></span><span class="preprocessor">#pragma GCC diagnostic warning &quot;-Wunused-variable&quot;</span>
<a name="l00020"></a>00020 <span class="preprocessor"></span>
<a name="l00024"></a><a class="code" href="class_c_move_down_animator.html">00024</a> <span class="keyword">class </span><a class="code" href="class_c_move_down_animator.html">CMoveDownAnimator</a> : <span class="keyword">public</span> irr::scene::ISceneNodeAnimator {
<a name="l00025"></a>00025 <span class="keyword">public</span>:
<a name="l00035"></a>00035     <a class="code" href="class_c_move_down_animator.html#ae47d21445c9ecb7b19009f76241e093e">CMoveDownAnimator</a>(<a class="code" href="class_c_game_field_manager.html">CGameFieldManager</a>* gameFieldManager, <span class="keywordtype">bool</span> twoDimensionalMode, irr::u32 step, irr::f32 <a class="code" href="class_c_move_down_animator.html#accb27d1d71b19fe1524f640d8560a0cd">delay</a>, irr::core::aabbox3df <a class="code" href="class_c_move_down_animator.html#accdeef37221b28e4e61dd63e87ed2ddb">aabb</a> = irr::core::aabbox3df(irr::core::vector3df(0.0f, 0.0f, 0.0f)));
<a name="l00036"></a>00036 
<a name="l00040"></a>00040     <span class="keyword">virtual</span> <span class="keywordtype">void</span> <a class="code" href="class_c_move_down_animator.html#a982f970e23d81c8689ce89709bc5f629">animateNode</a>(irr::scene::ISceneNode* node, irr::u32 timeMs);
<a name="l00041"></a>00041 
<a name="l00045"></a>00045     <span class="keyword">virtual</span> irr::scene::ISceneNodeAnimator* <a class="code" href="class_c_move_down_animator.html#a16dacd5a03934546b111369c3fbb8b20">createClone</a>(irr::scene::ISceneNode* node, irr::scene::ISceneManager* newManager);
<a name="l00046"></a>00046 
<a name="l00050"></a>00050     <span class="keyword">virtual</span> <a class="code" href="class_c_move_down_animator.html#a684250581adb83969be74c496403736c">~CMoveDownAnimator</a>();
<a name="l00051"></a>00051 
<a name="l00057"></a>00057     irr::u32 <a class="code" href="class_c_move_down_animator.html#ac984b42f35f8894776108b196fa83fb7">getStep</a>() <span class="keyword">const</span>;
<a name="l00058"></a>00058 
<a name="l00064"></a>00064     <span class="keywordtype">void</span> <a class="code" href="class_c_move_down_animator.html#ab64538d744ad51037dffd8c2bee7fa56">setStep</a>(irr::u32 step);
<a name="l00065"></a>00065 
<a name="l00071"></a>00071     irr::f32 <a class="code" href="class_c_move_down_animator.html#a572fa4eb9a85859728865d0dba7b99e5">getDelay</a>() <span class="keyword">const</span>;
<a name="l00072"></a>00072 
<a name="l00078"></a>00078     <span class="keywordtype">void</span> <a class="code" href="class_c_move_down_animator.html#a7674a8242d96da603c050a843e2495b7">setDelay</a>(irr::f32 delay);
<a name="l00079"></a>00079 
<a name="l00085"></a>00085     <span class="keywordtype">bool</span> <a class="code" href="class_c_move_down_animator.html#a624da18a847ea8c3c51f2fb67e181527">isStopped</a>() <span class="keyword">const</span>;
<a name="l00086"></a>00086 
<a name="l00092"></a>00092     <span class="keywordtype">void</span> <a class="code" href="class_c_move_down_animator.html#a704eff39a1e7a93c3ab1d7f98a72a2d8">setStoppedValue</a>(<span class="keywordtype">bool</span> newStoppedValue);
<a name="l00093"></a>00093 
<a name="l00094"></a>00094 <span class="keyword">protected</span>:
<a name="l00095"></a>00095 
<a name="l00099"></a><a class="code" href="class_c_move_down_animator.html#a39db20fe68fd6436c04ae3293bbcb318">00099</a>     irr::core::vector3di <a class="code" href="class_c_move_down_animator.html#a39db20fe68fd6436c04ae3293bbcb318">directionStep</a>;
<a name="l00100"></a>00100 
<a name="l00104"></a><a class="code" href="class_c_move_down_animator.html#accb27d1d71b19fe1524f640d8560a0cd">00104</a>     irr::u32 <a class="code" href="class_c_move_down_animator.html#accb27d1d71b19fe1524f640d8560a0cd">delay</a>;
<a name="l00105"></a>00105 
<a name="l00109"></a><a class="code" href="class_c_move_down_animator.html#accdeef37221b28e4e61dd63e87ed2ddb">00109</a>     irr::core::aabbox3df <a class="code" href="class_c_move_down_animator.html#accdeef37221b28e4e61dd63e87ed2ddb">aabb</a>;
<a name="l00110"></a>00110 
<a name="l00111"></a>00111 <span class="keyword">private</span>:
<a name="l00118"></a>00118     <span class="keywordtype">bool</span> outOfFieldBorders(irr::core::vector3di position);
<a name="l00119"></a>00119     
<a name="l00126"></a>00126     <span class="keywordtype">bool</span> outOfBottomFieldBorders(irr::core::vector3di position);
<a name="l00127"></a>00127 <span class="keyword">private</span>:
<a name="l00131"></a>00131     <a class="code" href="class_c_game_field_manager.html">CGameFieldManager</a>* gameFieldManager;
<a name="l00132"></a>00132     
<a name="l00136"></a>00136     <span class="keywordtype">bool</span> twoDimensionalMode;
<a name="l00137"></a>00137     
<a name="l00141"></a>00141     <span class="keywordtype">bool</span> noBoundaries;
<a name="l00142"></a>00142     
<a name="l00146"></a>00146     <span class="keywordtype">bool</span> firstUpdate;
<a name="l00147"></a>00147     
<a name="l00151"></a>00151     irr::u32 loopTime;
<a name="l00152"></a>00152     
<a name="l00156"></a>00156     <span class="keywordtype">bool</span> stopped;
<a name="l00157"></a>00157 
<a name="l00158"></a>00158 };
<a name="l00159"></a>00159 
<a name="l00160"></a>00160 <span class="preprocessor">#endif  </span><span class="comment">/* CMOVEDOWNANIMATOR_H */</span>
<a name="l00161"></a>00161 
</pre></div></div><!-- contents -->
</div>
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
<a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(0)"><span class="SelectionMark">&#160;</span>All</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(1)"><span class="SelectionMark">&#160;</span>Classes</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(2)"><span class="SelectionMark">&#160;</span>Functions</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(3)"><span class="SelectionMark">&#160;</span>Variables</a></div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="javascript:void(0)" frameborder="0" 
        name="MSearchResults" id="MSearchResults">
</iframe>
</div>

  <div id="nav-path" class="navpath">
    <ul>
      <li class="navelem"><b>CMoveDownAnimator.h</b>      </li>

    <li class="footer">Generated on Sun Jul 6 2014 19:35:11 for Tetris Game by
    <a href="http://www.doxygen.org/index.html">
    <img class="footer" src="doxygen.png" alt="doxygen"/></a> 1.7.6.1 </li>
   </ul>
 </div>


</body>
</html>
